//child_process.exec()方法
var exec = require('child_process').exec,
	child;

child = exec('cat *.js test_spawn | wc -l',function(error,stdout,stderr){
	console.log('stdout: ' + stdout);
	console.log('stderr: ' + stderr);

	if(error !== null){
		console.log('exec error: ' + error);
	}
});